from sklearn.linear_model import LogisticRegression
from sklearn.datasets import load_breast_cancer

boston=load_breast_cancer()
x=boston.data
y=boston.target

model=LogisticRegression(solver='liblinear')
model.fit(x,y)

print('准确率',model.score(x,y))
print('截距',model.intercept_)
print('权重',model.coef_)
print('预测值',model.predict(x))